package com.ruoyi.web.xxj.domain.vo;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.Type;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.web.xxj.domain.ClassInfo;
import com.ruoyi.web.xxj.domain.ClassOrder;
import com.ruoyi.web.xxj.domain.ProductOrder;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ClassOrderVo extends ClassOrder {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("课程信息")
    private ClassInfo classInfo;
    
    @Excels({
    	@Excel(name = "加购文创名称", targetAttr = "productName", type = Type.EXPORT),
    	@Excel(name = "加购文创支付状态", 
    			readConverterExp = "0=未支付,1=已支付,2=退款待审核,3=退款通过审核,4=拒绝退款,5=已退款,6=退款失败,7=取消订单",
    			targetAttr = "payStatus", type = Type.EXPORT)
    })
    @ApiModelProperty("跟随购买的文创订单")
    private ProductOrder productOrder;

}
